package com.ego.admin.oauth;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @program: ego
 * @description: OauthToken
 * @author: KamTang
 * @create: 2022-11-11 12:14
 **/
public class OauthToken implements AuthenticationToken {

    private final String token;

    public OauthToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
